<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>

</body>
</html>

<script>
//   day: 
//   hours:
//   minutes: 
//   seconds:
var origin = 1234567;

// 几天 -> 一天是多少秒：60 * 60 * 24
var days = parseInt(origin / (60 * 60 * 24));
// console.log(days );

// 几时
var hours = parseInt(origin % (60 * 60 * 24) / (60 * 60));
// console.log('hours', hours);
// 几分
var mintues = parseInt(origin % (60 * 60) / 60)
// console.log('mintues', mintues);

// 几秒
var seconds = origin % 60;

// result - 结果
var result = days + '天，' + hours + '小时,' + mintues + '分钟，' + seconds + '秒。';

console.log(result);


</script>

